home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / back_to_work.swf / scripts / DefineButton2_821 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2007-09-27  |  1.2 KB  |  42 lines

  1. on(release){
  2.    if(_root.storysend() == 1)
  3.    {
  4.       clothnum = [];
  5.       clothname = [];
  6.       xcloth = [];
  7.       ycloth = [];
  8.       depcloth = [];
  9.       modelaction = [];
  10.       moviename = _root.moviename;
  11.       var k = 1;
  12.       while(k <= _root.womannum)
  13.       {
  14.          _root["cloth" + k].shift();
  15.          _root["xcloth" + k].shift();
  16.          _root["ycloth" + k].shift();
  17.          _root["depcloth" + k].shift();
  18.          clothnum[k - 1] = _root["cloth" + k].length;
  19.          clothname = clothname.concat(_root["cloth" + k]);
  20.          xcloth = xcloth.concat(_root["xcloth" + k]);
  21.          ycloth = ycloth.concat(_root["ycloth" + k]);
  22.          depcloth = depcloth.concat(_root["depcloth" + k]);
  23.          modelaction.push(_root.showaction[k]);
  24.          k++;
  25.       }
  26.       clothnum.push("0");
  27.       clothname.push("0");
  28.       xcloth.push("0");
  29.       ycloth.push("0");
  30.       depcloth.push("0");
  31.       modelaction.push("0");
  32.       bgnum = _root.bgnum;
  33.       title = _root.title;
  34.       secret = _root.secret;
  35.       name = _root.name;
  36.       comment = _root.comment;
  37.       musicurl = _root.selmusicurl;
  38.       this.getURL("../story/load_n.asp","_self","post");
  39.       this._visible = false;
  40.    }
  41. }
  42.